<?php 
	include_once 'thuvienham.php';
	include_once 'hoadonquyen_db.php';

	class hoadonquyen_bs 
	{
		//------------------Fields [2]------------------
			// #0
		private $MaQuyenHoaDon = -1;
		public function SetMaQuyenHoaDon($MaQuyenHoaDon) { $this->MaQuyenHoaDon = $MaQuyenHoaDon; }
		public function GetMaQuyenHoaDon() { return $this->MaQuyenHoaDon; }
			// #1
		private $NgayMo = "0000-00-00";
		public function SetNgayMo($NgayMo) { $this->NgayMo = $NgayMo; }
		public function GetNgayMo() { return $this->NgayMo; }

		//------------------Method------------------
		public function Them()
		{
			$data = new hoadonquyen_db();
			return $data->Them($this->MaQuyenHoaDon, $this->NgayMo);
		}

		public function Xoa()
		{
			$data = new hoadonquyen_db();
			return $data->Xoa($this->MaQuyenHoaDon);
		}

		public function CapNhat()
		{
			$data = new hoadonquyen_db();
			return $data->CapNhat($this->MaQuyenHoaDon, $this->NgayMo);
		}

		public function LayDanhSach()
		{
			$data = new hoadonquyen_db();
			return $data->LayDanhSach($this->MaQuyenHoaDon, $this->NgayMo);
		}

	}

